
<div class="modal-header">
  <h4 class="modal-title">素材图片</h4>
</div>
<div class="modal-body">

<div class="container-fluid">

  <div class="row">
      <div class="col-sm-2" ng-repeat="obj in imagearr track by $index">
          
          <!-- x -->
          <button style="margin-left: 10px" ng-click="imageDel($index)" type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>

          <!-- 往后 -->
          <button style="margin-left: 10px" ng-if="$index != imagearr.length - 1" ng-click="imageDown($index)" type="button" class="close" aria-label="Close"><span aria-hidden="true">&darr;</span></button>
          <!-- 往前 -->
          <button style="margin-left: 10px" ng-if="$index != 0" ng-click="imageUp($index)" type="button" class="close" aria-label="Close"><span aria-hidden="true">&uarr;</span></button>

          <img ng-src="{{obj}}" class="img-thumbnail img-responsive">

      </div>
      
  </div>


  
</div>

</div>
<div class="modal-footer">
  <button class="btn btn-success" ng-click="setImage()">添加图片</button>
</div>


<hr>







<div class="modal-header">
  <h4 class="modal-title">素材文字</h4>
</div>
<div class="modal-body">

<div class="container-fluid">

  <div class="row">
      <div class="alert alert-warning alert-dismissible" role="alert"
       ng-repeat="dic in textarr track by $index"
      >{{dic.text}}
        <button type="button" class="close" aria-label="Close" ng-click="del_text($index)"><span aria-hidden="true">&times;</span></button>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <button
          ng-if="$index != textarr.length - 1"
          type="button" class="close" aria-label="Close" ng-click="textDown($index)"><span aria-hidden="true">&darr;</span></button>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <button
          ng-if="$index != 0"
          type="button" class="close" aria-label="Close" ng-click="textUp($index)"><span aria-hidden="true">&uarr;</span></button>

          <!-- {{text}} -->
      </div>

  </div>

  <div class="row">
      <textarea class="form-control" rows="3" ng-model="text" ng-change="change()"></textarea>
  </div>


      
</div>

</div>
<div class="modal-footer">
  <button class="btn btn-success" ng-click="setText()">添加文字</button>
</div>




<div class="modal-footer">
  <button class="btn btn-primary" type="button" ng-click="gogo()">保存</button>
  <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>



